package com.qinker.oa.service;

import com.github.pagehelper.PageInfo;
import com.qinker.oa.model.CustomerContactMessage;
import com.qinker.oa.model.CustomerInfo;
import com.qinker.oa.model.vo.CustomerInfoVo;

import javax.servlet.http.HttpSession;
import java.util.List;


public interface CustomerInfoService {

    PageInfo<CustomerInfoVo> getCustomerInfoListAll(int page, int pageSize);

    List<CustomerInfoVo> getCustomerInfoListAllWithNoPage();

    PageInfo<CustomerInfoVo> getCustomerInfoListPerson(int page, int pageSize, int uid);

    List<CustomerInfoVo> getCustomerInfoListPersonWithNoPage(int uid);

    void addCustomerInfo(CustomerInfo info, HttpSession session);

    PageInfo<CustomerInfoVo> search(int page, int pageSize,String customerNumber, String customerName, int[] ids);

    List<CustomerContactMessage> getMessageById(int aId);

    void insertSchedule(CustomerContactMessage message);

    void deleteCustomer(int id);

    List<CustomerInfoVo> downloadExcelAllByUser(String customerNumber, String customerName, int[] ids);

    void updateInfoById(CustomerInfo info);
}
